package com.imu.purse.modules.trade.service;

import com.imu.purse.modules.trade.entity.ScheduleLogEntity;
import java.util.List;

/**
 * 
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-04-03 09:26:57
 * Copyright (c) 2017 武汉极时间科技有限公司 版权所有 
 * Jshijian aloha CO.,LTD. All Rights Reserved. 
 */
public interface ScheduleLogService 
{
	/****
	 * 插入
	 * @param scheduleLog
 	 * @date 2018-04-03 09:26:57
	 * @return
	 */
    public int save(final ScheduleLogEntity scheduleLog);
    
    /****
	 * 删除
	 * @param ids
 	 * @date 2018-04-03 09:26:57
	 * @return
	 */
    public boolean delete(final String ...ids);
    
    /****
	 * 修改
	 * @param scheduleLog
 	 * @date 2018-04-03 09:26:57
	 * @return
	 */
    public int update(final ScheduleLogEntity scheduleLog);
    
     /****
	 * 插入或跟新
	 * @param scheduleLog
 	 * @date 2018-04-03 09:26:57
	 * @return
	 */
    public int saveUpdate(final ScheduleLogEntity scheduleLog);
    
    /****
	 * 根据ID查询
	 * @param id
 	 * @date 2018-04-03 09:26:57
	 * @return
	 */
    public ScheduleLogEntity findById(final Long id);
    
    /****
   	 * 分页查询
	 * @param scheduleLog
 	 * @date 2018-04-03 09:26:57
   	 * @return
   	 */
    public List<ScheduleLogEntity> queryList(final ScheduleLogEntity scheduleLog);

    /**
     * 获取成功的最大记录
     * @param name
     * @param status
     * @return
     */
    public Integer findMaxByNameAndType(final String name,final Integer status);
}
